package com.example.springsecurity06.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @GetMapping("/test")
    public String test() {
        System.out.println("test ok!");
        return "test ok!";
    }

    @PostMapping("/withdraw")
    public String withdraw() {
        System.out.println("模拟执行了一次转账操作");
        return "模拟执行了一次转账操作";
    }
}
